# 初始化
from libs import northstar
from system import recovery
from system import loadinggui
import sys,os
northstar.init_SCREEN()
northstar.init_BUTTON()
for i in range(0,71,2):
    loadinggui.showload(i)
    northstar.oled.show()
# 添加libs、公开库和沙盒
sys.path.append("/storage/system/libs")
sys.path.append("sandbox")
# 设置系统目录，准备移交
os.chdir("/storage/system")
for i in range(71,81,2):
    loadinggui.showload(i)
    northstar.oled.show()
# 将控制器移交
import ns 
ns.set_syslib(northstar)
for i in range(81,91,2):
    loadinggui.showload(i)
    northstar.oled.show()
# ns初始化（传递参数）
ns.loading_first()
for i in range(91,101,2):
    loadinggui.showload(i)
    northstar.oled.show()

loadinggui.finishload()
# 移交
import northstart